<!DOCTYPE html>
<html lang="ch">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
	<meta name="format-detection" content="telephone=no" />
	<script>
		var html = document.getElementsByTagName('html')[0];
		html.style.fontSize = html.clientWidth / 3.75 + "px";
	</script>
	<title>批发管理</title>
	<link rel="stylesheet" href="../static/css/Reset.css" />
	<link rel="stylesheet" href="../static/css/wholesale_management.css" />
</head>
<body>
	<div id="saleManage" class="container">
		<ul class="sdd_tab">
			<li id="fb_btn"><span class="sdd_tabSelected">发布中<i v-cloak>({{fbListLength}})</i></span></li>
			<li id="ck_btn"><span v-cloak>仓库中<i v-cloak>({{ckListLength}})</i></span></li>
		</ul>
		<div class="sdd_listContents">
			<!--发布中产品列表-->
			<div id="fb_list">
				<div class="sdd_product" v-for="goods in fbList" v-cloak>
					<p class="sdd_supTime">供货时间：{{goods.supplyTimeBegin}}-{{goods.supplyTimeEnd}}</p>
					<div class="sdd_productMes">
						<div class="sdd_productImg">
							<img :src="goods.mainImage" onerror="javascript:this.src=''" />
							<p>{{goods.inMarketTypeStr}}</p>
						</div>
						<div class="sdd_productDetails">
							<p class="sdd_productTitle">{{goods.goodsName}}</p>
							<p class="fl_l">产量：{{goods.totalSupply}}{{goods.unit}}</p>
							<p class="fl_r"><span class="sdd_proPrice">￥{{goods.price}}</span>元/{{goods.unit}}</p>
							<p class="clear">起批：{{goods.rangeBegin}}{{goods.unit}}</p>
						</div>
					</div>
					<div class="sdd_editDiv">
						<!--<a :href="'publish_goods.html?goodsId=' + goods.id"><div>编辑</div></a>-->
						<div :id="goods.id" @click="offFrame($event)">下架</div>
					</div>
				</div>
				<!--noData-->
				<div v-if="fbNoData" class="NoFllow" v-cloak>
		            <img src="../static/images/defaultImg1.png" alt="">
		            <div class="nofllowText">暂无发布中的商品！</div>
		        </div>
			</div>
			<!--仓库中产品列表-->
			<div id="ck_list">
				<div class="sdd_product" v-for="goods in ckList" v-cloak>
					<p class="sdd_supTime">供货时间：{{goods.supplyTimeBegin}}-{{goods.supplyTimeEnd}}</p>
					<div class="sdd_productMes">
						<div class="sdd_productImg">
							<img :src="goods.mainImage" onerror="javascript:this.src=''" />
							<p>{{goods.goodsStatus}}</p>
						</div>
						<div class="sdd_productDetails">
							<p class="sdd_productTitle">{{goods.goodsName}}</p>
							<p class="fl_l">产量：{{goods.totalSupply}}{{goods.unit}}</p>
							<p class="fl_r"><span class="sdd_proPrice">￥{{goods.price}}</span>元/{{goods.unit}}</p>
							<p class="both">起批：{{goods.rangeBegin}}{{goods.unit}}</p>
						</div>
					</div>
					<div class="sdd_editDiv">
						<a :href="'publish_goods.html?goodsId=' + goods.id"><div>编辑</div></a>
						<div v-show='goods.goodsStatus == "已下架"' :id="goods.id" @click="onFrame($event)">上架</div>
						<div v-show='goods.goodsStatus == "已下架" || goods.goodsStatus == "审核失败" || goods.goodsStatus == "违规下架"' :id="goods.id" @click="deleteGoods($event)">删除</div>
					</div>
				</div>
				<!--noData-->
				<div v-if="ckNoData" class="NoFllow">
		            <img src="../static/images/defaultImg1.png" alt="">
		            <div class="nofllowText">仓库中没有商品！</div>
		        </div>
			</div>
		</div>
        <!--loading组件-->
        <loading v-show="showLoading"></loading>
	</div>
	<a href="publish_goods.html" class="sdd_create">创建</a>
</body>
<script src="https://api.map.baidu.com/api?v=2.0&ak=1BiZDIdoRV9iryDNcdF4oU37pqwftOin&s=1"></script>
<script type="text/javascript" src="../libs/jquery.min.js"></script>
<script type="text/javascript" src="../libs/fastclick.min.js"></script>
<script type="text/javascript" src="../libs/vue/vue.min.js"></script>
<script type="text/javascript" src="../libs/vue/vue-resource.min.js"></script>
<script type="text/javascript" src="../libs/require.js"></script>
<script type="text/javascript" src="../libs/var.js"></script>
<script type="text/javascript" src="../libs/common.js"></script>
<script type="text/javascript" src="./js/wholesale_management.js"></script>
</html>